package com.gxa.insurance.exception;


/**
 * @author Min
 */
public class BusinessException extends Exception{
    private ExceptionCode exceptionCode;

    public ExceptionCode getExceptionCode() {
        return exceptionCode;
    }

    public BusinessException(ExceptionCode exceptionCode){
        super(exceptionCode.getMessage());
        this.exceptionCode=exceptionCode;
    }
}
